```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gradle 构建工具完全指南</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f9fafb;
            color: #1f2937;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }
        .prose {
            max-width: 65ch;
        }
        .drop-cap::first-letter {
            float: left;
            font-size: 3.5em;
            line-height: 0.8;
            margin: 0.1em 0.2em 0 0;
            font-weight: 700;
            color: #6366f1;
        }
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .gradient-text {
            background: linear-gradient(90deg, #6366f1, #8b5cf6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4 md:px-0">
        <div class="container mx-auto max-w-6xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <div class="flex items-center mb-4">
                        <div class="bg-white bg-opacity-20 px-3 py-1 rounded-full text-sm font-medium">构建自动化工具</div>
                    </div>
                    <h1 class="text-4xl md:text-5xl font-bold leading-tight mb-6">Gradle 完全指南</h1>
                    <p class="text-xl opacity-90 mb-8 max-w-lg">现代项目构建的首选工具，结合了Ant的灵活性和Maven的强大功能</p>
                    <div class="flex space-x-4">
                        <a href="#intro" class="bg-white text-indigo-600 hover:bg-indigo-50 px-6 py-3 rounded-lg font-medium transition duration-300">开始学习</a>
                        <a href="#comparison" class="border-2 border-white border-opacity-30 hover:border-opacity-100 text-white px-6 py-3 rounded-lg font-medium transition duration-300">对比分析</a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <div class="relative w-64 h-64 md:w-80 md:h-80">
                        <div class="absolute inset-0 bg-white bg-opacity-10 rounded-xl transform rotate-6"></div>
                        <div class="absolute inset-0 bg-white bg-opacity-10 rounded-xl transform -rotate-6"></div>
                        <div class="absolute inset-0 bg-white bg-opacity-10 rounded-xl"></div>
                        <div class="absolute inset-0 flex items-center justify-center">
                            <i class="fas fa-code-branch text-6xl md:text-7xl text-white"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto max-w-6xl px-4 py-16">
        <!-- Introduction Section -->
        <section id="intro" class="mb-24">
            <div class="prose mx-auto">
                <h2 class="text-3xl font-bold mb-6 gradient-text">Gradle 简介</h2>
                <p class="drop-cap mb-6">Gradle是一款基于Apache Ant和Maven概念的开源构建自动化工具，采用Groovy/Kotlin DSL（领域特定语言）进行构建脚本编写。它结合了Ant的灵活性和Maven的约定优于配置理念，支持多语言项目构建，尤其擅长Java、Android、Kotlin等项目的构建管理。</p>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-history mr-2"></i> 发展历史与现状
                        </h3>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full">2007</span>
                                <span>由Hans Dockter等人开始开发</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full">2012</span>
                                <span>成为Android官方构建工具</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full">2019</span>
                                <span>支持Kotlin DSL</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full">2023</span>
                                <span>最新稳定版为8.5，支持Java 21</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full">现在</span>
                                <span>已被Google、Netflix、LinkedIn等公司广泛采用</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>

        <!-- Comparison Section -->
        <section id="comparison" class="mb-24">
            <div class="prose mx-auto">
                <h2 class="text-3xl font-bold mb-6 gradient-text">与Maven/Ant对比优势</h2>
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead class="bg-indigo-50">
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-indigo-600 uppercase tracking-wider">特性</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-indigo-600 uppercase tracking-wider">Gradle</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-indigo-600 uppercase tracking-wider">Maven</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-indigo-600 uppercase tracking-wider">Ant</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">构建语言</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Groovy/Kotlin DSL</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">XML</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">XML</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">性能</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">增量构建最快</span></td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">较慢</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">最慢</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">灵活性</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><span class="px-2 py-1 bg-purple-100 text-purple-800 rounded-full text-xs">极高</span></td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">低（约定优先）</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">高</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">依赖管理</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><span class="px-2 py-1 bg-blue-100 text-blue-800 rounded-full text-xs">强</span></td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">强</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">需手动管理</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">多项目构建</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><span class="px-2 py-1 bg-indigo-100 text-indigo-800 rounded-full text-xs">优秀</span></td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">一般</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">困难</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">插件生态</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">丰富</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">丰富</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">有限</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </section>

        <!-- Core Concepts Section -->
        <section class="mb-24">
            <div class="prose mx-auto">
                <h2 class="text-3xl font-bold mb-6 gradient-text">Gradle核心概念</h2>
                
                <div class="grid md:grid-cols-2 gap-8 my-8">
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-project-diagram mr-2"></i> Project（项目）
                        </h3>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>每个build.gradle对应一个Project</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>包含多个Task和配置信息</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>通过settings.gradle定义多项目结构</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-tasks mr-2"></i> Task（任务）
                        </h3>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>构建过程的基本执行单元</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>支持任务依赖（dependsOn）</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>输入/输出声明实现增量构建</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-puzzle-piece mr-2"></i> Plugin（插件）
                        </h3>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>提供预定义任务和配置</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>官方插件（Java、Android等）</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>社区插件（Spring Boot、Docker等）</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-cubes mr-2"></i> Dependency（依赖）
                        </h3>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>支持本地/远程仓库</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>灵活的依赖配置（implementation、api等）</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>依赖版本冲突自动解决</span>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <!-- Mermaid Diagram -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 my-8">
                    <div class="mermaid">
                        graph TD
                            A[Gradle构建流程] --> B[初始化阶段]
                            A --> C[配置阶段]
                            A --> D[执行阶段]
                            B --> B1[解析settings.gradle]
                            C --> C1[创建Task DAG]
                            D --> D1[执行Task]
                            D1 --> D2[增量构建检查]
                            D2 -->|有变化| D3[执行任务]
                            D2 -->|无变化| D4[跳过任务]
                    </div>
                </div>
            </div>
        </section>

        <!-- Environment Setup Section -->
        <section class="mb-24">
            <div class="prose mx-auto">
                <h2 class="text-3xl font-bold mb-6 gradient-text">环境搭建</h2>
                
                <div class="grid md:grid-cols-2 gap-8 my-8">
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fab fa-windows mr-2"></i> Windows安装步骤
                        </h3>
                        <ol class="space-y-3 text-gray-700">
                            <li class="flex items-start">
                                <span class="bg-indigo-600 text-white text-xs font-medium mr-3 px-2 py-1 rounded-full">1</span>
                                <span>下载二进制包：<a href="https://gradle.org/releases/" class="text-indigo-600 hover:underline">https://gradle.org/releases/</a></span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-600 text-white text-xs font-medium mr-3 px-2 py-1 rounded-full">2</span>
                                <span>解压到C:\gradle</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-600 text-white text-xs font-medium mr-3 px-2 py-1 rounded-full">3</span>
                                <span>配置环境变量：
                                    <ul class="ml-6 mt-2 space-y-1">
                                        <li>GRADLE_HOME = C:\gradle</li>
                                        <li>Path添加 %GRADLE_HOME%\bin</li>
                                    </ul>
                                </span>
                            </li>
                        </ol>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fab fa-apple mr-2"></i> Mac安装步骤
                        </h3>
                        <div class="bg-gray-800 rounded-lg p-4 mb-4">
                            <code class="text-green-400 font-mono text-sm">
                                brew install gradle
                            </code>
                        </div>
                        <h4 class="font-medium text-gray-800 mb-2">验证安装</h4>
                        <div class="bg-gray-800 rounded-lg p-4">
                            <code class="text-green-400 font-mono text-sm">
                                gradle -v
                                <br><br>
                                # 预期输出<br>
                                Gradle 8.5<br>
                                ...<br>
                                Build time:   2023-10-16 20:13:43 UTC
                            </code>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-cog mr-2"></i> IDEA配置
                        </h3>
                        <div class="grid md:grid-cols-3 gap-4">
                            <div class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-3 px-2.5 py-0.5 rounded-full">1</span>
                                <span>File > Settings > Build Tools > Gradle</span>
                            </div>
                            <div class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-3 px-2.5 py-0.5 rounded-full">2</span>
                                <span>设置Gradle JVM版本（建议11+）</span>
                            </div>
                            <div class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-800 text-xs font-medium mr-3 px-2.5 py-0.5 rounded-full">3</span>
                                <span>选择使用Gradle Wrapper</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Project Structure Section -->
        <section class="mb-24">
            <div class="prose mx-auto">
                <h2 class="text-3xl font-bold mb-6 gradient-text">Gradle项目结构</h2>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-folder-open mr-2"></i> 标准结构
                        </h3>
                        <div class="bg-gray-800 rounded-lg p-4 mb-4">
                            <pre class="text-green-400 font-mono text-sm">
project/
├── build.gradle         # 核心构建脚本
├── settings.gradle      # 项目配置
├── gradle.properties    # 全局属性
├── gradlew              # Wrapper脚本
├── gradlew.bat
└── src/
    ├── main/
    │   ├── java/        # 源代码
    │   └── resources/   # 资源文件
    └── test/            # 测试代码</pre>
                        </div>
                    </div>
                </div>
                
                <div class="grid md:grid-cols-2 gap-8 my-8">
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-file-code mr-2"></i> build.gradle
                        </h3>
                        <div class="bg-gray-800 rounded-lg p-4">
                            <code class="text-green-400 font-mono text-sm">
plugins {
    id 'java' 
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.springframework:spring-core:5.3.16'
    testImplementation 'junit:junit:4.13.2'
}
                            </code>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 card-hover transition duration-300">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-file-alt mr-2"></i> settings.gradle
                        </h3>
                        <div class="bg-gray-800 rounded-lg p-4">
                            <code class="text-green-400 font-mono text-sm">
rootProject.name = 'demo-project'
include 'submodule1', 'submodule2'
                            </code>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-shield-alt mr-2"></i> Gradle Wrapper
                        </h3>
                        <div class="flex flex-col md:flex-row md:items-center justify-between">
                            <div>
                                <p class="text-gray-700 mb-4 md:mb-0">保证构建环境一致性</p>
                            </div>
                            <div class="bg-gray-800 rounded-lg p-4">
                                <code class="text-green-400 font-mono text-sm">
                                    gradle wrapper --gradle-version 8.5
                                </code>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Practical Section -->
        <section class="mb-24">
            <div class="prose mx-auto">
                <h2 class="text-3xl font-bold mb-6 gradient-text">基础实战应用</h2>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-rocket mr-2"></i> 初始化Spring Boot项目
                        </h3>
                        <div class="bg-gray-800 rounded-lg p-4">
                            <code class="text-green-400 font-mono text-sm">
gradle init \
  --type java-application \
  --dsl groovy \
  --test-framework junit-jupiter \
  --project-name demo \
  --package com.ts
                            </code>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-terminal mr-2"></i> 常用命令
                        </h3>
                        <div class="overflow-x-auto">
                            <table class="w-full">
                                <thead class="bg-indigo-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-indigo-600 uppercase tracking-wider">命令</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-indigo-600 uppercase tracking-wider">作用</th>
                                    </tr>
                                </thead>
                                <tbody class="divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">gradle clean</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">清理构建产物</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">gradle build</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">执行完整构建</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">gradle test</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">运行测试</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">gradle run</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">执行应用程序</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">gradle dependencies</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">查看依赖树</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">gradle tasks</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">查看可用任务</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden my-8 card-hover transition duration-300">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-600 flex items-center">
                            <i class="fas fa-sitemap mr-2"></i> 构建生命周期
                        </h3>
                        <div class="grid md:grid-cols-3 gap-4">
                            <div class="bg-indigo-50 p-4 rounded-lg">
                                <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mb-3">
                                    <span class="text-indigo-800 font-bold">1</span>
                                </div>
                                <h4 class="font-medium text-indigo-800">初始化</h4>
                                <p class="text-sm text-gray-700 mt-1">解析settings.gradle</p>
                            </div>
                            <div class="bg-indigo-50 p-4 rounded-lg">
                                <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mb-3">
                                    <span class="text-indigo-800 font-bold">2</span>
                                </div>
                                <h4 class="font-medium text-indigo-800">配置</h4>
                                <p class="text-sm text-gray-700 mt-1">解析build.gradle，创建Task DAG</p>
                            </div>
                            <div class="bg-indigo-50 p-4 rounded-lg">
                                <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mb-3">
                                    <span class="text-indigo-800 font-bold">3</span>
                                </div>
                                <h4 class="font-medium text-indigo-800">执行</h4>
                                <p class="text-sm text-gray-700 mt-1">按顺序执行Task</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```